package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.OrderDDT;
import com.ruoyi.system.domain.OrderT;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<OrderDDT> {

    Integer insertOrder(OrderT order);

    List<OrderT> getAll(Integer userId);

    OrderT getAllById(@Param("userId") Integer userId,@Param("orderId") Integer orderId);
}
